import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore(
  'userStore',
  () => {
    // 定义数据token记录登录状态
    const token = ref('')


    return {
      token
    }
  },
  {
    persist: {
      paths: ['token']
    },
  }
)
